package com.spukmk3me.video;

public class TextSetting
{
    public TextSetting( int color, int w, int h, boolean truncate )
    {
        this( color, w, h, truncate, 0 );
    }
    
    public TextSetting( int color, int w, int h, boolean truncate,
        int flags )
    {
        this.color      = color;
        this.w          = w;
        this.h          = h;
        this.truncate   = truncate;
        this.flags      = flags;
    }
    
    public static final int ITALIC     = 0x00000001;
    public static final int BOLD       = 0x00000002;
    public static final int UNDERLINE  = 0x00000004;

    public static final int ALIGN_LEFT      = 0x00000100;
    public static final int ALIGN_RIGHT     = 0x00000200;
    public static final int ALIGN_TOP       = 0x00000400;
    public static final int ALIGN_BOTTOM    = 0x00000800;
    public static final int ALIGN_CENTERX   = 0x00001000;
    public static final int ALIGN_CENTERY   = 0x00002000;

    public static final int ADVANCED_ALIGNMENT =
        ALIGN_BOTTOM | ALIGN_CENTERY | ALIGN_RIGHT | ALIGN_CENTERX;
    
    public final int        color;
    public final int        flags;
    public final int        w, h;
    public final boolean    truncate;
}
